﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BDS3M.Controls
{
    public partial class ListNewsGioiThieu : System.Web.UI.UserControl
    {
        public string GioiThieuDescription;
        public static int id;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["ID"] != null)
            {
                id = Convert.ToInt32(Request.QueryString["ID"].ToString());
                DataTable dt = DAL.DCollector.DBCollector.Instance.StoredSelectAllTableWhereID("tbl_GioiThieu", "Category_ID1", id.ToString());

                GioiThieuDescription = Server.HtmlDecode(dt.Rows[0]["GioiThieu_Description"].ToString());
            }
        }
    }
}